home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
prntutil
/
more
/
more.doc
< prev
next >
Wrap
Text File
|
1995-04-25
|
4KB
|
95 lines
MORE.TTP - Version 1.4
A multi-purpose file-printout utility.
Copyright 1987 by Moshe Braner.
Permission is granted to copy and use,
but not to sell for profit.
SYNOPSIS:
more [-p][-f outfile][-v][-b][-d][-s][-c][-m#][-t#] filename
-p output to printer (default: to screen)
-f send output to file
-v print control chars verbatim
-b break long lines to about 68 columns
-d print double-spaced
-s skip over perforation
-c enter printer control codes (manually)
-m# add an extra left margin of # columns
-t# expand tabs to size # (default 8) (0 to leave as-is)
More.ttp prints a text file to the screen, printer, or into
another file. It provides convenient screen-by-screen viewing
(including review of text that has scrolled off screen), and
various hardcopy printout options. More.ttp also attempts to
show word-processing (e.g. 1st Word) files in a usable form.
More.ttp is a 'TOS-takes-parameters' program, i.e. it takes
its instructions from the 'command line'. From the desktop,
double-click on the MORE.TTP icon, then enter the parameters
into the dialog box. From a 'shell', type "more" followed
by the parameters, then press <Return>.
If you invoke more.ttp with no parameters at all, it will
display a short list of the command-line parameter options.
One parameter is always needed: the name of the file to be
printed. If that is the only parameter you enter on the
command line, that text file will be shown on the screen.
One screen-full will be displayed, and the message "more...".
You can then press <Return> to see one more line, <Space> to
see the next screenfull, <Backspace> to see the former screen-
full, or <Esc> (or <Q>) to quit. You can also press <Home> to
jump to the beginning of the file. Press <Home> once again to
jump to the end of the file. When at the end of the file you
will see the message "end of file". You can then press <Esc>
(or <Q>), <Backspace>, or <Home>.
To print the file 'foo' on the printer (the parallel port)
type "more -p foo". The whole file will be printed without
pause, but you may abort the printout in the middle by pressing
<Esc>. You may also add other options on the command line:
"-s" to skip 6 lines after every 60 text lines (to
skip over the perforation in fan-fold paper).
"-v" to pass control characters through unchanged.
(Otherwise they are replaced with spaces.)
You can also manually add printer control codes (e.g. for a
font change). On the command line type "-c". Later, more.ttp
will prompt you for two sets of codes. Enter any characters
you want, then press <Return>. (Use Control-M to include ASCII
code 13.) The first set will be sent BEFORE the file is printed,
the other set AFTER, presumably to reset the printer to your
preferred default printing style.
If you add "-f foo" to your command line, the output will go to
the file 'foo' instead of the screen or the printer. This is
useful if you want to print it on another computer, or if you
just want to convert a 1st-Word file to an ASCII file.
Other options available, whether you're printing to the screen,
printer, or a file, are:
"-b" to break long lines, at a space if possible, between
columns 63 and 75. Good for word-processing files.
"-d" to print 'double spaced' (a blank line after each
text line).
"-t#" to expand tabs to a different width than the
default 8. ('#' is the number, e.g. "-t4".)
("-t0" cancels expansion of tabs: they are passed
through to the printer (or file) as ASCII 9.)
"-m#" to add a left-margin of # columns (e.g. "-m12").
Some example command lines:
-p -c letter
-t4 program.pas
-p -s -m5 program.c
-b -f wp.txt wp.doc